import { defineStore } from 'pinia'
import { reactive } from 'vue'

export default defineStore(
  'user',
  () => {
    const data = reactive({
        token: '',
        user: {name:'',avatar:'' },
    })
    return { data }
  },
  {
    persist: true,
  },
)